package com.backend.demo1.mapper;

import com.backend.demo1.models.Role;

import java.util.List;

import org.apache.ibatis.annotations.*;

@Mapper
public interface RoleMapper {

    Role findByName(String name);

    void insert(Role role);

    List<Role> findAll();
}
